package com.yunlankeji.stemcells.network.callback;

import com.yunlankeji.stemcells.model.request.UserInfo;
import com.yunlankeji.stemcells.network.responsebean.ResponseBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * Created by Snooker on on 2020/8/20
 * 封装请求的接口
 */
public interface Request {
    //用户登录
    @POST("member/login")
    Call<ResponseBean> requestLogin(@Body UserInfo userInfo);

    Call<ResponseBean> sendVerificationCode(UserInfo userInfo);

    //用户注册
    @POST("member/register")
    Call<ResponseBean> requestRegister(@Body UserInfo userInfo);

    //发送验证码
    @POST("phoneVerificationCode/sendVerificationCode")
    Call<ResponseBean> requestsendCode(@Body UserInfo userInfo);

    //修改密码
    @POST("member/updatePassWord")
    Call<ResponseBean>updatepassword(@Body UserInfo userInfo);
}
